package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.entity.NursingProjectPlan;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingProjectMapper {
    Page<NursingProject> selectByPage(String name, Integer status);

    void insert(NursingProject nursingProject);

    NursingProject selectById(Long id);

    void update(NursingProject nursingProject);

    List<NursingProject> selectList(Object o);

    void updateStatus(Long id, Integer status);

    @Delete("delete from zzyl.nursing_project where id = #{id}")
    void deleteById(Long id);

    List<NursingProject> selectBatchIds(List<Integer> projectIds);
}
